package edu.gatech.oad.antlab.m7final;

public class Journey {
	private String location, startDate, nextStop;
	private int milesTraveled, daysOnJourney;
	private Trail trailConditions;
	private Weather weatherConditions;
	private TrailNavigator trailNav;
	
	public Journey(){
		startDate = "May 1, 1848";
		trailNav = new TrailNavigator();
		milesTraveled = 0;
		daysOnJourney = 0;
		trailConditions = Trail.CLEAR;
		weatherConditions = Weather.SUNNY;
	}
	
	public String getLocation(){
		return location;
	}
	
	public void setLocation(String loca){
		this.location = loca;
	}
	
	public Trail getTrailConditions(){
		return trailConditions;
	}
	
	public void setTrailConditions(Trail trail){
		this.trailConditions = trail;
	}
	
	public Weather getWeatherConditions(){
		return weatherConditions;
	}
	
	public void setWeather(Weather weather){
		this.weatherConditions = weather;
	}
	
	public String getStartDate(){
		return startDate;
	}
	
	public String getNextStop(){
		return nextStop;
	}
	
	public void setNextStop(String next){
		this.nextStop = next;
	}
	
	public int getElapsedTime(){
		return daysOnJourney;
	}
	
	public int getMilesTraveled(){
		return milesTraveled;
	}
	
	public void updateMiles(int milesTraveled){
		this.milesTraveled+=milesTraveled;
		if(milesTraveled > 0){
			daysOnJourney += 1;
		}
	}
	
	public void rest(){
		daysOnJourney += 1;
	}
}
